package com.sprhib.strut.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.sprhib.strut.UserBo;

@Component("userSpringAction")
public class UserSpringAction {
	//DI via Spring
	   
	 @Autowired
		UserBo userBo;
	 
		public UserBo getUserBo() {
			return userBo;
		}
	 
		public void setUserBo(UserBo userBo) {
			this.userBo = userBo;
		}
	 
		public String execute() throws Exception {
	 
			userBo.printUser();
			return "success";
	 
		}
}
